/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Client.persistence;

import Client.domain.ClientDomainController;
import Client.domain.ImageProcessor;
import java.awt.Color;
import java.awt.image.BufferedImage;

/**
 *
 * @author Ripper
 */
public class TileLibrary 
{
    public static BufferedImage getImageForID(ClientDomainController cdc, int id, int forcedSize)
    {
        BufferedImage bi = null;
        
        switch(id)
        {
            case 10000:
                Color[] colors = {
                new Color(100,100,100),
                new Color(100,100,100),
                new Color(100,100,100),
                new Color(100,100,100)
                };
                bi = cdc.getImage(id+"", colors);
                bi = ImageProcessor.scaleToFitSize(bi, forcedSize);
                
                break;
        }
        
        return bi;
    }
}
